﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DrachListLibrary.List;
using DrachHumansLibrary.Humans;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            MyList<string> list = new MyList<string>();
            Random r = new Random();
            //Stopwatch sw = new Stopwatch();
            //sw.Restart();
            for (int i = 0; i < 1000000; i++)
            {
                list.Add(r.Next(0, 9).ToString());
            }
            //Console.WriteLine("Время создания:");
            //Console.WriteLine(sw.ElapsedMilliseconds);
            Console.WriteLine("Тест индексатора:");
            Console.WriteLine(list[1]);
            Console.WriteLine(list.first.next.data);
            Console.ReadLine();
            Man adam=new Man(null,null,"Адам","Мужчина");
            Man Din = new Man(null, null, "Дин Винчестер", "Мужчина");
            Din.AddCar("Chevrolet Impala");
            Woman jane = new Woman(null, null, "Jane", "Женщина");
            jane.AddFood("Пирог");
            Console.WriteLine(adam.MyInfo());
            Woman eva=new Woman(null,null,"Ева","Женщина");
            Console.WriteLine(eva.MyInfo());
            Man kain = new Man(adam, eva, "Каин", "Мужчина");
            Console.WriteLine(kain.MyInfo());
            Woman avan = new Woman(adam, eva, "Аван", "Женщина");
            Console.WriteLine(avan.MyInfo());
            Man enoh = new Man(kain, avan, "Енох", "Мужчина");
            Console.WriteLine(enoh.MyInfo());
            Console.ReadLine();
        }
    }
    
}
    
